package com.gxc.scheduled;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/**
 * @author 宫新程
 * @since 2019/1/29 11:40
 */
@Service
public class TestScheduled {

  @Scheduled(cron = "*/2 * * * * ?")
  public void show() {
    System.out.println(System.currentTimeMillis());
  }
}
